package com.laomuji.android.mvvm.demo.h5

import com.laomuji.android.mvvm.utils.MyLog

class H5Interface {
    @android.webkit.JavascriptInterface
    fun openWebView(url: String?) {
        if(url.isNullOrEmpty()){
            MyLog.iCustom("tag_h5_interface","空页面禁止打开")
            return
        }
        MyLog.iCustom("tag_h5_interface","打开新WebView")
        H5Activity.openH5Activity(url)
    }

}